from django.shortcuts import render

# Create your views here.
from django.http.response import HttpResponse
from django.views.decorators.http import require_http_methods


# @require_http_methods(['POST']) 只能使用post请求
def index(request):
    print("视图运行了")
    return HttpResponse("hello world!")